package com.jiawa.train.member.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * <p>
 * 车票
 * </p>
 *
 * @author hrz
 * @since 2025-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ticket")
@ApiModel(value="Ticket对象", description="车票")
public class Ticket implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "会员id")
    private Long memberId;

    @ApiModelProperty(value = "乘客id")
    private Long passengerId;

    @ApiModelProperty(value = "乘客姓名")
    private String passengerName;

    @ApiModelProperty(value = "日期")
    private LocalDate trainDate;

    @ApiModelProperty(value = "车次编号")
    private String trainCode;

    @ApiModelProperty(value = "箱序")
    private Integer carriageIndex;

    @ApiModelProperty(value = "排号|01, 02")
    private String seatRow;

    @ApiModelProperty(value = "列号|枚举[SeatColEnum]")
    private String seatCol;

    @ApiModelProperty(value = "出发站")
    private String startStation;

    @ApiModelProperty(value = "出发时间")
    private LocalTime startTime;

    @ApiModelProperty(value = "到达站")
    private String endStation;

    @ApiModelProperty(value = "到站时间")
    private LocalTime endTime;

    @ApiModelProperty(value = "座位类型|枚举[SeatTypeEnum]")
    private String seatType;

    @ApiModelProperty(value = "新增时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
